<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery.min.js"></script>
    <script>
        var uid = window.location.search;
        uid = uid.substring(1);

        $.get("getUser.jhtml?"+uid,function (p) {
            for(var attr in p){
                $("[name="+attr+"]").val(p[attr]);
            }
        },"json");

    </script>
</head>
<body>
<form method="post" action="update.jhtml">
    <table>
        <input type="hidden" name="id">
        <tr><td>用户名称：</td><td><input name="userName" type="text"></td></tr>
        <tr><td>姓名：</td><td><input name="name" type="text"></td></tr>
        <tr><td>电话：</td><td><input name="telephone" type="text"></td></tr>
        <tr><td>单位：</td><td><input name="unit" type="text"></td></tr>
        <tr><td>地址：</td><td><input name="landMark" type="text"></td></tr>
        <tr><td>入职日期：</td><td><input name="enterdate" type="text"></td></tr>
        <tr><td><input type="submit" value="修改"></td></tr>
    </table>
</form>
</body>
</html>